class CanCommentModel {
  int? id;
  String? comment;
  int? templateId;

  CanCommentModel({this.id, this.comment, this.templateId});

  factory CanCommentModel.fromJson(Map<String, dynamic> json) {
    return CanCommentModel(
      id: json['id'] as int?,
      comment: json['comment'] as String?,
      templateId: json['template_id'] as int?,
    );
  }

  Map<String, dynamic> toJson() => {
        'id': id,
        'comment': comment,
        'template_id': templateId,
      };
}
